<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Add ProductBase</title>
<script>
	$(document).ready(function(){
	    $("table tbody tr:even").addClass("tdbgcolor1"); 
	    $("table tbody tr:odd").addClass("tdbgcolor2"); 
	});
</script>
</head>
<body>
<script>
	function checkAndSubmit(){
		var form = document.getElementById("addProductBaseForm");
		var id = document.getElementById("productBaseId");
		if (id.value ==""){
			document.getElementById("productBaseId").value = "-1";
		}else 
			form.action="updateProductBase.action";
		form.submit();
	}
</script>
<div align="center">编辑基本功能</div>
<form method="post" action="addProductBase.action" id="addProductBaseForm">
<table width="80%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF" align="center">
	<tr>
		<td>铃声:</td>
		<td><input type="text" name="ring" id="ring"  value="<s:property value='productBase.ring'/>" /></td>
	</tr>
	<tr>
		<td>通讯录:</td>
		<td><input type="text" name="addressBook" id="addressBook" value="<s:property value='productBase.addressBook'/>" /></td>
	</tr>
	<tr>
		<td>信息功能:</td>
		<td><input type="text" name="messageFuns" id="messageFuns" value="<s:property value='productBase.messageFuns'/>" /></td>
	</tr>
	<tr>
		<td>E-mail收发:</td>
		<td><input type="text" name="emailFuns" id="emailFuns" value="<s:property value='productBase.emailFuns'/>" /></td>
	</tr>
	<tr>
		<td>输入法:</td>
		<td><input type="text" name="inputMethod" id="inputMethod" value="<s:property value='productBase.inputMethod'/>" /></td>
	</tr>
	<tr>
		<td>游戏:</td>
		<td><input type="text" name="game" id="game" value="<s:property value='productBase.game'/>" /></td>
	</tr>
	<tr>
		<td>办公功能:</td>
		<td><input type="text" name="officeFuns" id="officeFuns" value="<s:property value='productBase.officeFuns'/>" /></td>
	</tr>
	<tr>
		<td>录音功能:</td>
		<td><input type="text" name="recording" id="recording" value="<s:property value='productBase.recording'/>" /></td>
	</tr>
	<tr>
		<td>主要功能:</td>
		<td><input type="text" name="mainFunction" id="mainFunction" value="<s:property value='productBase.mainFunction'/>" /></td>
	</tr>
	<tr>
		<td>附加功能:</td>
		<td><input type="text" name="otherFuns" id="otherFuns" value="<s:property value='productBase.otherFuns'/>" /></td>
	</tr>
	<tr>
		<td>待机时间:</td>
		<td><input type="text" name="waitTime" id="waitTime" value="<s:property value='productBase.waitTime'/>" /></td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="hidden" value="<s:property value='langId'/>" name="langId" id="langId"/>
			<input type="hidden" value="<s:property value='productId'/>" name="productId" id="productId"/>
			<input type="hidden" value="<s:property value='productBase.id'/>" name="productBaseId" id="productBaseId"/>
			<input type="button" value="Save"  onclick="checkAndSubmit()"/>&nbsp;
			<input	type="button" value="reset" />&nbsp;
			<input	type="button" value="返回"  onclick="javascript:window.history.back();" />
		</td>
</table>
</form>
</body>
</html>
